lib=libmath.a

$(lib):math.o
	ar -rc $@ $^
math.o:math.c
	gcc -c $^

.PHONY:clean
clean:
	rm -f *.o *.a
.PHONY:output
output:
	mkdir -p lib/include
	mkdir -p lib/mathlib
	cp *.h lib/include
	cp *.a lib/mathlib
